package com.ruoyi.weixin.juc2;

import java.text.SimpleDateFormat;

/**
 * @Description: TODO
 * @Author ONESTAR
 * @Date: 2021/12/24 15:15
 * @Version 1.0
 */
public class Test1 {

    public static void main(String [] args){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        String [] dateStringArray=new String[]{"2000-01-01","2000-01-02","2000-01-03","2000-01-04",
                "2000-01-05","2000-01-06","2000-01-07","2000-01-08","2000-01-01","2000-01-09","2000-01-10"
        };
        MyThread2[] tharray=new MyThread2[10];
        for(int i=0;i<10;i++){
            tharray[i]=new MyThread2(sdf,dateStringArray[i]);
        }
        for(int i=0;i<10;i++){
            tharray[i].start();
        }
    }
}
